<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Hecore
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 * @version    $Id: IndexController.php 2010-07-02 19:52 idris $
 * @author     Idris
 */

/**
 * @category   Application_Extensions
 * @package    Hecore
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 */

class Hecore_IndexController extends Core_Controller_Action_Standard
{
  public function init()
  {
    $this->view->params = $params = (array)$this->_getParam('params');
    $this->view->callback = $callback = $this->_getParam('c');
    $this->view->title = $title = $this->_getParam('t', '');
    $this->view->module = $module = $this->_getParam('m');
    $this->view->list = $list = $this->_getParam('l');
    $this->view->not_logged_in = $not_logged_in = $this->_getParam('nli', 0);
    $this->view->p = $p = (int)$this->_getParam('p', 1);
    $this->view->contacts = $contacts = (array)$this->_getParam('contacts', array());
    $this->view->viewer = $viewer = Engine_Api::_()->user()->getViewer();
    $this->view->disabled_label = !empty($this->view->params['disabled_label']) ? $this->view->params['disabled_label'] : "";
    $this->view->ipp = $ipp = (int)$this->_getParam('ipp', 30);
    
    // Params
    $keyword = $this->_getParam('keyword');
    $list_type = $this->_getParam('list